require('./Global');

let PlayerData = require("./PlayerData");
let isInited = false;

function InitGame() {
  if (!isInited) {
    cc.CEventManager.instance = cc.CEventManager.instance || new cc.CEventManager();
    AudioEngineWrapper.init();
    PlatformUtils.init();
    PlayerData.instance = new PlayerData();
    isInited = true;
  }
}

module.exports = InitGame;